package cc.aileron.wsgi.activity.registry;

import cc.aileron.wsgi.activity.WsgiProcess;
import cc.aileron.wsgi.activity.WsgiValidator;

/**
 * validator and process
 * 
 * @author Aileron
 * @param <Resource>
 * 
 */
public class WsgiValidatorAndProcess<Resource>
{
    /**
     * @param process
     */
    public WsgiValidatorAndProcess(final WsgiProcess<Resource> process)
    {
        this.process = process;
        this.validator = null;
    }

    /**
     * @param validator
     * @param process
     */
    public WsgiValidatorAndProcess(
        final WsgiValidator<Resource> validator,
        final WsgiProcess<Resource> process)
    {
        this.validator = validator;
        this.process = process;
    }

    /**
     * validator
     */
    public final WsgiValidator<Resource> validator;

    /**
     * process
     */
    public final WsgiProcess<Resource> process;
}